(function(){
	if ( typeof common != "undefined" ){
		var _common = common;
	}
	var common = window.common = function() {
		// If the context is a namespace object, return a new object
		return this instanceof common ? this.init() : new common();
	};
	common.fn = common.prototype = {
		init: function() {
			console.debug("common.init");
			return this;
		},
		msg:function(ele){
			console.debug("common.msg");
			var ele_msg = ele.parent().find("span[name='msg']");
			if(ele_msg.length==0){
				ele_msg = $("<span name='msg'></span>");
				ele_msg.appendTo(ele.parent());
			}
			return ele_msg;		
		}
	}
})();
